package com.nb.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.time.LocalDateTime;


@Data
@Table(value = "sys_config_history",dataSource = "primaryDS")
public class SysConfigHistory {
    @Id
    @Column(value = "id")
    private Integer id;

    @Column(value = "config_id")
    private Integer configId;

    @Column(value = "old_key")
    private String oldKey;

    @Column(value = "old_value")
    private String oldValue;

    @Column(value = "new_key")
    private String newKey;

    @Column(value = "new_value")
    private String newValue;

    @Column(value = "operate_type")
    private String operateType; // CREATE/UPDATE/DELETE

    @Column(value = "operated_by")
    private String operatedBy;

    @Column(value = "operated_time")
    private LocalDateTime operatedTime;
}